RETRIEVE EMAIL HISTORY - PHP

To retrieve a detailed log of your messaging history, use the following code:

<? php

$url = 'https://messagingapis.paylite.net/api/messagingdata/GetEmailByIds';

$ch = curl_init($url);

$jsonData = '{

"ApiKey": "Your API Key",

"EmailIds": [

       "00d1e9734ed84568ae820c487f4397c9"

]

}';

curl_setopt($ch, CURLOPT_POST, 1);

curl_setopt($ch, CURLOPT_POSTFIELDS, $jsonData);

curl_setopt($ch, CURLOPT_HTTPHEADER, array('Content-Type: application/json'));

$result = curl_exec($ch);

echo($result);

?>